package com.baizhiedu.basic.pojo;

import java.sql.Date;

/**
 * @Author: robert.song
 * @Date: Created in 2021/12/15
 */
public class Orders {
    private Integer id;
    private Date orderTime;
    private Double total;
    private Integer uid;

    public Orders(Long id, Date orderTime, Double total, Integer uid) {
        this.id = id.intValue();
        this.orderTime = orderTime;
        this.total = total;
        this.uid = uid;
    }

    public Orders(Integer id, Date orderTime, Double total, Integer uid) {
        this.id = id;
        this.orderTime = orderTime;
        this.total = total;
        this.uid = uid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "id=" + id +
                ", orderTime=" + orderTime +
                ", total=" + total +
                ", uid=" + uid +
                '}';
    }
}
